//
//  XLAppLog.h
//  campus
//
//  Created by xl on 2019/11/4.
//  Copyright © 2019 xl. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

#define XLLOGPRINT(xx, ...)\
    if([XLAppLog isLogEnable] ) {\
    NSLog(@"%s(%d): " xx, __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__); \
}

#define WESKLOG(xx, ...)  XLLOGPRINT(xx, ##__VA_ARGS__)

@interface XLAppLog : NSObject

+ (void)setLogEnable:(BOOL)bEnable;
+ (BOOL)isLogEnable;

@end

NS_ASSUME_NONNULL_END
